package com.weixin.paleituo.bean;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * 共享家 样板间 城市样板间数据Bean
 *
 * @author fengzhen
 * @version v1.0, 2018/4/23
 */

public class HousesListBean implements Parcelable{

    /**
     * ptList : [{"name":"轻奢风格","id":3,"surfaceUrl":"http://p35r91t1w.bkt.clouddn.com/FkRrPBBg6HqNO1EVXs0_h08GQ00f","nop":0}]
     * houses : 成都.中海国际林汀别墅
     * rout : http://p35r91t1w.bkt.clouddn.com/Fs2USy98RAsmcrqDxW9aMOQqhwfC
     * id : 226
     */

    private String houses;
    private String rout;
    private int id;
    private List<PtListBean> ptList;

    protected HousesListBean(Parcel in) {
        houses = in.readString();
        rout = in.readString();
        id = in.readInt();
        ptList = in.createTypedArrayList(PtListBean.CREATOR);
    }

    public static final Creator<HousesListBean> CREATOR = new Creator<HousesListBean>() {
        @Override
        public HousesListBean createFromParcel(Parcel in) {
            return new HousesListBean(in);
        }

        @Override
        public HousesListBean[] newArray(int size) {
            return new HousesListBean[size];
        }
    };

    public String getHouses() {
        return houses;
    }

    public void setHouses(String houses) {
        this.houses = houses;
    }

    public String getRout() {
        return rout;
    }

    public void setRout(String rout) {
        this.rout = rout;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<PtListBean> getPtList() {
        return ptList;
    }

    public void setPtList(List<PtListBean> ptList) {
        this.ptList = ptList;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(houses);
        dest.writeString(rout);
        dest.writeInt(id);
        dest.writeTypedList(ptList);
    }
}
